package com.kkb.pojo;

import java.io.Serializable;
import java.util.Date;

public class TbRole implements Serializable {
    private Integer roleId;

    private String roleName;

    private Integer type;

    private Integer grade;

    private Integer parentId;

    private String roleDescription;

    private String createId;

    private String updateId;

    private Date createTime;

    private Date updateTime;

    private Integer roleAuthority;

    private String isDelete;

    private String bak3;

    private static final long serialVersionUID = 1L;

    public TbRole(Integer roleId, String roleName, Integer type, Integer grade, Integer parentId, String roleDescription, String createId, String updateId, Date createTime, Date updateTime, Integer roleAuthority, String isDelete, String bak3) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.type = type;
        this.grade = grade;
        this.parentId = parentId;
        this.roleDescription = roleDescription;
        this.createId = createId;
        this.updateId = updateId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.roleAuthority = roleAuthority;
        this.isDelete = isDelete;
        this.bak3 = bak3;
    }

    public TbRole() {
        super();
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getRoleDescription() {
        return roleDescription;
    }

    public void setRoleDescription(String roleDescription) {
        this.roleDescription = roleDescription == null ? null : roleDescription.trim();
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId == null ? null : createId.trim();
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId == null ? null : updateId.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getRoleAuthority() {
        return roleAuthority;
    }

    public void setRoleAuthority(Integer roleAuthority) {
        this.roleAuthority = roleAuthority;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    public String getBak3() {
        return bak3;
    }

    public void setBak3(String bak3) {
        this.bak3 = bak3 == null ? null : bak3.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roleId=").append(roleId);
        sb.append(", roleName=").append(roleName);
        sb.append(", type=").append(type);
        sb.append(", grade=").append(grade);
        sb.append(", parentId=").append(parentId);
        sb.append(", roleDescription=").append(roleDescription);
        sb.append(", createId=").append(createId);
        sb.append(", updateId=").append(updateId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", roleAuthority=").append(roleAuthority);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", bak3=").append(bak3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}